<?php $this->load->view('common/head');?>
<div class="container-fluid">
	<div class="row-fluid">
		<div class="span12">
			<form class="form-horizontal" name="add" id="add" action="<?php echo $this->input->server('REQUEST_URI'); ?>" method="post">
				<input type="hidden" name="actId" id="actId" value="<?=$actData['actId']?>">
				<input type="hidden" name="proId" id="proId" value="<?=$proId?>">
				<table class="table table-condensed" style="margin-top: 20px;">
					<tbody>
						<tr>
							<td class="active col-md-3 text-right">
								<label for="actTitle">*请填写主标题：</label>
							</td>
							<td>
								<input type="text" required class="form-control" name="actTitle" id="actTitle" value="<?=$actData['actTitle']?>" placeholder="动作主标题">
							</td>
						</tr>
						<tr>
							<td class="active col-md-3 text-right">
							<label for="orderNum">排序：</label>
							</td>
							<td>
								<input type="text" required class="form-control" style="width:200px;" name="orderNum" id="orderNum" value="<?=$actData['orderNum']?>" placeholder="排序">
							</td>
						</tr>
						<tr>
							<td class="active col-md-3 text-right">
								<label for="actDesc">反馈说明：</label>
							</td>
							<td>
								<textarea style="width: 400px;height: 150px;" class="form-control" name="actDesc" id="remarks" rows="3" placeholder="反馈说明"><?=$actData['actDesc']?></textarea>
							</td>
						</tr>
						<tr align="center">
							<td colspan="2">
								<button type="submit" class="btn btn-default btn-primary">保存动作</button>
						  		<button type="button" onclick="closeWindow()" class="btn btn-default btn-primary">取消</button>
							</td>
						</tr>
					</tbody>
				</table>
			</form>
		</div>
	</div>
</div>
<script type="text/javascript">
$(function(){
	initValidation();
});
//初始化验证
function initValidation(){
	$('form[name="add"]').find("input,select,textarea").jqBootstrapValidation("destroy");
	$('form[name="add"]').find("input,select,textarea").not("[type=submit]").jqBootstrapValidation({
	    preventSubmit:false,
	    submitSuccess: function (form, event) {
	         event.preventDefault();
	         ajaxFormSubmit('add');
	     },
	     submitError: function (form, event, errors) {
	       event.preventDefault();
	       }
  	});
}
</script>
<?php $this->load->view('common/foot');?>